import service from "../../server/request";

// export function getAllOrder(data:any) {
//   return service({
//     url: "/order/all/xyz",
//     method: "get",
//     params: data,
//   });
// }

export function getCouponByJwt(data: any) {
  return service({
    url: "/coupon/jwt",
    method: "get",
    params: data,
  });
}

export function getCouponByShopId(data: any) {
  return service({
    url: "/coupon/jwt/shopId",
    method: "get",
    params: data,
  });
}

export function getCouponByIdAndJwt(data: any) {
  return service({
    url: "/coupon/jwt/id",
    method: "get",
    params: data,
  });
}

export function createCouponByShopIdAndJwt(data: any) {
  return service({
    url: "/coupon/jwt",
    method: "post",
    params: data,
  });
}

export function updateCouponByIdAndJwt(data: any) {
  return service({
    url: "/coupon/jwt/id",
    method: "put",
    params: data,
  });
}


export function deleteCouponByIdAndJwt(data: any) {
  return service({
    url: "/coupon/jwt/id",
    method: "delete",
    params: data,
  });
}

// export function payOrderByIdAndJwt(data:any) {
//   return service({
//     url: "/order/jwt/pay/id",
//     method: "get",
//     params: data,
//   });
// }
